<template>
 <div  class="app">
  御剑乘风来,除魔天地间!===={{ app }}
  <hr/>
  <Father2></Father2>
  <hr/>
  ==={{ value }}==={{ value2 }}
  <BaseSelect @changeHandle="handle"></BaseSelect>
  <BaseSelect @changeHandle="handle2"></BaseSelect>
 </div>
</template>
<script>
import Father2  from  './provide/Father2.vue'
import BaseSelect  from  './provide/BaseSelect.vue'
export default{
    name:'',
    components:{
      Father2,
      BaseSelect

    },
    provide(){
      return {
        /* 需要传递的数据 */
        app:this.app,
        say:this.appHandle
      }
    },
    data () {
        return {
          app:'我是第一代',
          value:'',
          value2:''
        }
    },
    created () {
    },
    computed:{
    },
    methods:{
      appHandle(msg){
        console.log('apphandle');
        this.app=msg
      },
      handle(val){
        console.log(val,99);
        this.value=val
      },
      handle2(val){
        console.log(val,99);
        this.value2=val
      }
    }
}
</script>
<style lang='less'  scoped>

</style>